<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<div class="container" id="content">
	<input type="file" id="file" name="file" style="display: none;"/>
		<section class="content-header">
			<h1>
				<i class="fa fa-child"></i> <strong>新闻发布</strong>
			</h1>
			<ol class="breadcrumb">
				<li><a href="#"><i class="fa fa-home "></i>Home</a></li>
				<li>商户管理</li>
				<li class="active">新闻发布</li>
			</ol>
		</section>
		<!-- Main content -->
		<section class="content">
			<div class="row">
				<div class="col-md-12">
					<div class="box box-info">
						<div class="box-header with-border">
							<i class="fa fa-th-list"></i>
							<h4 class="box-title">新闻发布</h4>
						</div>
						<div class="box-body" style="margin-top: 30px;">
							<input type="hidden" id="id" name="id" th:value="${id}"/>
							<div class="control-label text-center" style="float: left;width: 150px;"><h4 class="box-title">新闻标题</h4></div>
							<div  style="float: left;width: 850px;"><input class="form-control" type="text" name="newsTitle" id="newsTitle" /></div>
						</div>
						<div class="box-body">
							<div class="control-label text-center" style="float: left;width: 150px;"><h4 class="box-title">新闻摘要</h4></div>
							<div  style="float: left;width: 850px;"><input class="form-control" type="text" name="newsDescribe" id="newsDescribe" /></div>
						</div>
						<div class="box-body">
							<div class="control-label text-center" style="float: left;width: 150px;"><h4 class="box-title">新闻图片</h4></div>
							<div style="float: left;width: 850px;">
								<div class="col-md-3">
									<input type="hidden" id="newsPicture" name="newsPicture"/>
									<label class="col-sm-12 left-label" style="padding-left: 0;"><a href="javascript: ;" id="fileclick"><img id="avatar"  src="" width="100px" height="100px"/></a></label>
								</div>
							</div>
						</div>
						<div class="box-body">
			   				<script id="editor" type="text/plain" style="width:1000px;height:500px;"></script>
						</div>
						<div style="margin-bottom: 10px;margin-left: 20px;">
							<button type="button" class="btn btn-info addBtn">发布</button>
							<button type="button" class="btn btn-info backBtn">返回</button>
						</div>
					</div>
				</div>
			</div>
		</section>
	    <script th:src="@{/plugins/ueditor/ueditor.config.js}"></script>
    		<script th:src="@{/plugins/ueditor/ueditor.all.js}"></script>
		<script th:src="@{/news/newsadd.js}"></script>
	</div>

</body>
</html>